package com.link.base.base.accnt.service;

import com.link.base.base.accnt.model.AcctAddress;
import com.link.core.basic.service.BasicService;

/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author unknwon
 * @version 1.0
 * @date: 2018/11/7 16:43
 */

public interface AcctAddressService extends BasicService<AcctAddress> {

    /**
     * <p>设置主要默认地址</p>
     * @author yrf
     * @param address
     */
    public void defaultAddrUpdate(AcctAddress address);

    /**
     * <p>设置地址是否有效</p>
     * @author yrf
     * @param address
     */
    public void effectiveAddrUpdate(AcctAddress address);

    /**
     * 设置默认地址
     * @author lizt
     * @param record
     * @throws Exception
     * @date 2017年3月31日
     */
    public void setMainAddr(AcctAddress record) throws Exception;

    /**
     * 将地址数据推送至DMP,由DMP调用本服务器中upsert方法
     *
     * @author NingLanhao
     * @date 2019-04-02 16:26
     * @param record
     * @throws Exception
     */
    void saveToDmp(AcctAddress record) throws Exception;
}
